import IDValidator from 'id-validator';

const idValidator = new IDValidator();



const ZJHM = (v)=>{
    return idValidator.isValid(v)
}

const phone = (v)=>{
    return !(/^1(3|4|5|7|8)\d{9}$/.test(v))
}

const KHZH = (v)=>{
    return ( /^([1-9]{1})(\d{14}|\d{18})$/.test(v))
}

const CPHM = (v)=>{
    return v !== ''
}

export default
{ZJHM,phone,KHZH,CPHM}
